<?php
class People{
	private $name;
	private $sex;
	private $shengao;
	private $tizhong;

	function People($name,$sex,$s,$t){
		$this->name = $name;
		$this->sex = $sex;
		$this->shengao = $s;
		$this->tizhong = $t;
	}
	function getname(){
		return $this->name;
	}
	function getsex(){
		return $this->sex;
	}
	function getshengao(){
		return $this->shengao;
	}
	function gettizhong(){
		return $this->tizhong;
	}
}

$People1 = new People("西宫爱","girl",155,45);
echo $People1->getname();
echo "<br/>";
echo $People1->getsex();
echo "<br/>";
echo $People1->getshengao();
echo "<br/>";
echo $People1->gettizhong();
echo "<br/>";

$People2 = new People("爱莎","girl",166,49);
echo $People2->getname();
echo "<br/>";
echo $People2->getsex();
echo "<br/>";
echo $People2->getshengao();
echo "<br/>";
echo $People2->gettizhong();
echo "<br/>";